package com.xiaodou.mjf.application.core.repository.mybatis;

import java.util.List;

import com.xiaodou.mjf.entity.core.Invest;
import com.xiaodou.mjf.infrastructure.common.app.Mapper;
import com.xiaodou.mjf.infrastructure.common.orm.MyBatisRepository;

@MyBatisRepository
public interface InvestMapper extends Mapper<Invest, String> {

	// 会员所购产吕
	public List<Invest> getBuyProductByMemberId(Invest invest);

	// 会员购买记录
	public List<Invest> getBuyRecordByMemberId(Invest invest);

	public Integer getBuyProductCount(String memberId);

	public Integer getBuyRecordCount(String memberId);

	// 会员资产统计
	public Invest getAssetsTotal(String memberId);

	// 客户按产品统计
	public List<Invest> getCusByProTotal();
}
